<template>
  <header class="app-header">
    <div class="container">
      <h1 class="logal">
        <RouterLink to="/">小兔仙</RouterLink>
      </h1>
      <AppHeaderNav></AppHeaderNav>
      <div class="search">
        <i class="iconfont icon-search"></i
        ><input type="text" placeholder="搜一搜" />
      </div>
      <div class="cart">
        <a class="curr" href="#">
          <i class="iconfont icon-cart"></i><em>2</em>
        </a>
      </div>
    </div>
  </header>
</template>
<script>
import AppHeaderNav from '@/components/app-header-nav'
export default {
  name: 'appHeaderNav',
  components: { AppHeaderNav },

  setup () {
  }
}
</script>
<style lang="less" scoped>
.app-header {
  background-color: #fff;
  .container {
    display: flex;
    height: 132px;
    line-height: 132px;
    .logal {
      width: 200px;
      text-indent: -99999px;
      background: url('~@/assets/image/logo.png') no-repeat center 18px /
        contain;
    }
    .search {
      position: relative;
      height: 32px;
      line-height: 32px;
      padding: 0 2px;
      top: 50px;
      border-bottom: 1px solid #e7e7e7;
      margin-right: 10px;
      input {
        padding: 0 5px;
      }
    }
    .cart {
      .icon-cart {
        font-size: 22px;
      }
      em {
        font-size: 12px;
        border-radius: 10px;
        position: relative;
        right: 0;
        top: -10px;
        padding: 1px 6px;
        text-align: center;
        background-color: red;
      }
    }
  }
}
</style>
